package com.yyy.hutool;

import cn.hutool.core.lang.Validator;
import org.junit.Test;

/**
 * 测试hutool的校验工具
 */

public class TestValid {


    @Test
    public void test1() {
        testValidWord("123是的是的d");
        testValidWord("123");
        testValidWord("ABCd");
        testValidWord("ABC");
        testValidWord("ABC1");
        testValidWord("bbbb1");
        testValidWord("bbb你b1");
    }


    Boolean testValidWord(String word) {
        boolean word1 = Validator.isWord(word);
        System.out.println(word + "是否是单词:" + (word1 ? "是" : "否"));
        return word1;
    }

}
